home *** CD-ROM | disk | FTP | other *** search
- Path: cocoa.brown.edu!news
- From: Yeuan-Ming_Sheu@brown.edu (Yeuan-Ming Sheu)
- Newsgroups: comp.lang.c++,comp.os.linux.setup
- Subject: Re: G++ and math.h
- Date: 10 Apr 1996 00:00:41 GMT
- Organization: Brown University, Providence, RI -- USA
- Message-ID: <4ketn9$kvm@cocoa.brown.edu>
- References: <316A9304.6E1B@easynet.co.uk>
- NNTP-Posting-Host: 128.148.60.129
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=ISO-8859-1
- X-Newsreader: WinVN 0.99.5
-
- In article <316A9304.6E1B@easynet.co.uk>, scarecrow@easynet.co.uk
- says...
- >
- >Dear All,
- >
- > I am having problems compiling code which uses the math.h
- >header. I have included the header correctly, but when I compile using
- >g++ 2.7.0 with -o and -m486 options I get several errors looking like
- >this:
- >
- >"/tmp/cca001502.o(.text+0x1ce): undefined reference to 'sin'"
- >
- > There is one error for every trig equation in the code. At
- >university I have to use a -l m option, but my linux version has never
- >heard of it.
- >
- > I also compiled it with borland 3.51 under DOS and it compiled
- >fine, but as the code is a Roff pre-processor I have no idea if it
- works
- >as I need a Linux executable.
- >
- > Thanks for your help,
- >
- > James Purbrick.
-
- Using '-Lm' or '-lm' option will work!
-
- Yeuan-Ming Sheu
-
-